<template>
  <div class="scene_box">
    <h3>Canvas画布布局和全屏 renderer.setSize </h3>
    <div class="canvas"></div>
  </div>
</template>
    
    <script setup>
import { nextTick } from "vue";
import { canvas_fun } from "../../js/chapterOne/canvas.js";
nextTick(() => {
  canvas_fun(".canvas");
});
</script>
    
    
<style  scoped>
.canvas{
width: 70vw;
height: 80vh;
}
</style>